<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
  <title>Taco Cloud</title>
  <style>
    html{
      width: 100%;
      height: 100%;
      font-style: sans-serif;
    }
    body{
      width: 100%;
      height: 100%;
      font-family: 'Open Sans',sans-serif;
      margin: 0;
      background-color: #dfdfdf;
    }
    .login{
      position: absolute;
      top:50%;
      left:50%;
      margin: -200px 0 0 -300px;
      width: 600px;
      height: 400px;
      background-color: white;
      border-radius: 10px;
      box-shadow: #56536A ;
    }
    .ll{
      position: absolute;
      top:50%;
      left:50%;
      margin: -150px 0 0 -250px;
      width: 500px;
      height: 300px;
    }

    .pic{
      width: 225px;
      height: 60px;
      margin-bottom: 10px;
    }
    .la{
      color: #959695;
      font-size: 14px;
    }

    input{
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      width: 475px;
      height: 15px;
      margin-bottom: 10px;
      outline: none;
      padding: 10px;
      font-size: 14px;
      text-shadow:1px 1px 1px;
      border-top: 1px solid #312E3D;
      border-left: 1px solid #312E3D;
      border-right: 1px solid #312E3D;
      border-bottom: 1px solid #56536A;
      border-radius: 4px;
      background-color: #fbfbfb;
    }
    .but{
      position: absolute;
      bottom: 3%;
      left:80%;
      width: 100px;
      height: 30px;
      text-align: center;
      line-height: 1px;
      background-color: #fbfbfb;
      border: 1px solid #312E3D;
      color: #656464;
      padding: 9px 14px;
      font-size: 16px;
      box-shadow: #656464;
      line-height: normal;
      border-radius: 15px;
      margin: 0;
    }
    .new{
      font-size: 14px;
      color: black;
    }
    .re{
      font-size: 14px;
      color: #abd4f4;
    }
  </style>
</head>

<body>

  <div th:if="${error}">
    Unable to login. Check your username and password.
  </div>

  <form method="POST" th:action="@{/login}" id="loginForm">
    <div class="login">
      <div class="ll">
        <img th:src="@{/images/login.png}" class="pic" name="pic"></br>
        <label for="username" class="la">Username: </label>
        <input type="text" name="username" id="username" class="in"/><br/>
         <label for="password" class="la">Password: </label>
        <input type="password" name="password" id="password" class="in"/><br/>

        <p class="new">New here? Click
          <a th:href="@{/register}" class="re">here</a> to register.</p>

        <input type="submit" class="but" value="Login"/>
      </div>
    </div>
  </form>
</body>
</html>